//
//  DGAccountManager.h
//  DGAccountKit
//
//  Created by Jinxiao on 11/19/13.
//  Copyright (c) 2013 debugeek. All rights reserved.
//

@class DGAccount;

#define DGCurrentAccount [DGAccountManager sharedInstance].currentAccount

typedef void (^DGAccountManagerSwitchAccountCompletion)(BOOL success, NSError *error);

@interface DGAccountManager : NSObject

@property (nonatomic, readonly, strong) DGAccount *currentAccount;

+ (instancetype)sharedInstance;

- (void)reloadCurrentAccount;

- (void)switchAccount:(DGAccount *)account completion:(DGAccountManagerSwitchAccountCompletion)completion;



@end
